<template>
  <div class="home-background">
    <!--      头部-->
    <div class="search-header">
      <div class="back"><i class="el-icon-arrow-left back-icon"></i></div>
      <div class="search-box">
        <i class="el-icon-search top-icon"></i>
      </div>
    </div>
    <div class="choose-type">
      <div class="type">活动</div>
      <div class="type">用户</div>
      <div class="type">帖子</div>
      <div class="type">小组</div>
      <div class="type">展馆</div>
    </div>
    <!--      帖子-->
    <div class="all-post">
      <div class="post">
        <div class="basic-info">
          <div class="info-img">
            <img src="../../../assets/img/6.png">
          </div>
          <div class="info-name">
            <h5>Ronin</h5>
            <p>2020.12.14</p>
          </div>
        </div>
        <div class="post-content">
          <p>如果我低头耷脑地顺从了，我将永远对生活妥协下去，做你们眼中的正常人，从生活中汲取一些简单易得的东西，在阴影下苟且作乐。</p>
          <p>嗨，你好，不知不觉三年时光就这样过去了，不知道现在的你是否安好。</p>
          <p>忽然给你写这封信也许有些唐突，但没有什么过多的目的，只是想跟你说两句心里话。事实上我已经很久没有想起过你了，可晚上整理手机相册时无意发现了几张一直未曾删掉的照片，那一刻仿佛有一阵凛冽的冷风吹进心里，那是一种真实却遥远的震颤，仿佛被时间的切片划过脸颊。</p>
        </div>
        <div class="post-img">
          <img src="../../../assets/img/1.jpg">
          <img src="../../../assets/img/2.jpg">
          <img src="../../../assets/img/3.jpg">
        </div>
        <div class="post-type" style="border-color: #70B603;color: #70B603">音乐剧</div>
        <div class="post-type" style="border-color: #EC808D;color: #EC808D">美国</div>
        <div class="post-type" style="border-color: #F59A23;color: #F59A23">家庭</div>
        <div>
          <div class="like-com">
            <i class="el-icon-star-off"></i>  77
            <i class="el-icon-chat-line-round"></i>  21
          </div>
        </div>

      </div>
    </div>

  </div>
</template>

<script>
    export default {
        name: "search-post"
    }
</script>

<style scoped>
  .home-background{
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F2F2;
  }
  .search-header{
    display: flex;
    top: 0;
    right: 0;
    left: 0;
    background-color: white;
    line-height: 44px;
    /*box-shadow: 0px 2px 1px rgba(215,215,215,.15);*/
  }
  .back{
    width: 40px;
    margin-left: 10px;
    margin-top: 5px;
    text-align: center;
  }
  .back-icon{
    color: #7f7f7f;
    font-size: 26px;
    /*margin-left: 7px;*/
    font-weight: bold;
  }
  .search-box{
    display: inline-block;
    flex: 1;
    background-color: #F2F2F2;
    border-radius: 20px;
    height: 35px;
    margin-top: 7px;
    margin-right: 10px;
  }
  .top-icon{
    color: #7f7f7f;
    font-size: 26px;
    margin-left: 7px;
    font-weight: bold;
  }
  .choose-type{
    display: flex;
    right: 0;
    left: 0;
    background-color: white;
    line-height: 44px;
    box-shadow: 0px 2px 1px rgba(215,215,215,.15);
  }
  .type{
    flex: 1;
    text-align: center;
  }

  .all-post{
    width: 100%;
    height: auto;
    background-color: #F2F2F2;
  }
  .post{
    width: 100%;
    height: 430px;
    border-radius: 10px;
    background-color: white;
    margin-top: 20px;
  }
  .basic-info{
    width: 100%;
    height: 16%;

  }
  .info-img{
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    vertical-align: top;
    margin-top: 20px;
    margin-left: 20px;
  }
  .info-img img{
    width: 60px;
    height: 60px;
    border-radius: 30px;
    vertical-align: top;
  }
  .info-name{
    display: inline-block;
    vertical-align: top;
    margin-left: 10px;
    margin-top: 15px;
  }
  .info-name h5{
    color: #555555;
    font-weight: bold;
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 0px;
  }
  .info-name p{
    color: #d7d7d7;
    font-size: 12px;
    margin-top: 5px;
  }
  .post-content{
    padding: 15px;
    margin-top: 5px;
  }
  .post-content p{
    color: #555555;
    font-size: 12px;
    margin-top: 3px;
    margin-bottom: 3px;
  }
  .post-img{
    margin-top: 0px;
  }
  .post-img img{
    display: inline-block;
    width: 120px;
    height: 120px;
    margin-left: 10px;
    margin-top: 10px;
  }
  .post-type{
    display: inline-block;
    width: 40px;
    height: 20px;
    border-radius: 10px;
    border: 1px solid;
    border-color: #70B603;
    font-size: 9px;
    padding-top: 1px;
    margin-left: 3px;
    text-align: center;
    margin-top: 10px;
    margin-left: 10px;
  }
  .like-com{
    display: inline-block;
    width: 120px;
    float: right;
  }
  .like-com i{
    margin-left: 5px;
    font-size: 20px;
  }
</style>
